import Vue from 'vue'
import VueRouter from 'vue-router'
import Index from '../views/Index'
import Bg from '../views/Bg'
import PicRec from '../views/Bg/PicRec'
// import PicRec from '../views/Bg/PicRec'
Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    component: Index
  },
  {
    path: '/Bg',
    component: Bg,
    children: [
      {
        path: 'PicRec',
        component: PicRec
      }
    ]
  }
]

const router = new VueRouter({
  routes
})

export default router
